package com.flurry.android;

import java.util.HashMap;
import java.util.List;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.protocol.BasicHttpContext;
import org.apache.http.util.EntityUtils;
import org.json.JSONObject;

final class bt extends a
{
  public bt()
    throws Exception
  {
  }

  private JSONObject a(HashMap<String, Object>[] paramArrayOfHashMap)
  {
    try
    {
      this.c = ((AppCloudResponseHandler)paramArrayOfHashMap[0].get("del"));
      this.d = ((AppCloudResponseRequestManagerHandler)paramArrayOfHashMap[0].get("del_internal"));
      this.e = paramArrayOfHashMap[0];
      HttpPut localHttpPut = new HttpPut("https://" + FlurryAppCloud.I() + "/" + (String)paramArrayOfHashMap[0].get("url"));
      a(localHttpPut, paramArrayOfHashMap[0]);
      localHttpPut.setEntity(new UrlEncodedFormEntity((List)paramArrayOfHashMap[0].get("data")));
      String str = EntityUtils.toString(this.a.execute(this.b, localHttpPut, new BasicHttpContext()).getEntity()).toString();
      if (((String)paramArrayOfHashMap[0].get("url")).matches(".*v1/user/.*/logout.*") == true)
        FlurryAppCloudRequestManager.UserSession = "";
      JSONObject localJSONObject = new JSONObject(str);
      return localJSONObject;
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
    }
    return null;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.bt
 * JD-Core Version:    0.6.2
 */